<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var one = prompt('请输入第一个数:');
        var two = prompt('请输入第二个数:');
        var result =parseFloat(one)+parseFloat(two);
        alert('您的结果是：' +result);
       


       //数据类型转换 代表空、 否定的值会被转化为false ,如“ 、0、NaN、null、undefined
       console.log(Boolean(12));
    console.log(4 % 2);
    </script>
</head>

<body>

</body>

</html>
